#include<bits/stdc++.h>
using namespace std;
int n,a[100005],f=1,s=1,tot;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    tot=n;
    for(int i=1;i<=n;i++)   cin>>a[i];
    sort(a+1,a+n+1);
    while(f<=n){
        if(a[f]>a[s])
            f++,s++,tot--;
        else    f++;
    }
    cout<<tot<<endl;
    return  0;
}
